import { NgModule } from '@angular/core';
import { SharedModule } from '@shared';
import { SysRoutingModule } from './sys-routing.module';
import { SysDicComponent } from './dic/dic.component';
import { SysDicDicModalComponent } from './dic/dic-modal/dic-modal.component';
import { SysDicItemModalComponent } from './dic/item-modal/item-modal.component';
import { SysTypeComponent } from './type/type.component';
import { SysTypeTypeModalComponent } from './type/type-modal/type-modal.component';
import { SysTypeItemModalComponent } from './type/item-modal/item-modal.component';
import { SysDicItemsDrawerComponent } from './dic/items-drawer/items-drawer.component';
import { SysLogComponent } from './log/log.component';
import { SysDemoComponent } from './demo/demo.component';
import { SysUserComponent } from './user/user.component';
import { SysUserUserModalComponent } from './user/user-modal/user-modal.component';
import { SysRoleComponent } from './role/role.component';
import { SysRoleRoleModalComponent } from './role/role-modal/role-modal.component';
import { SysPermissionComponent } from './permission/permission.component';
import { SysPermissionPermissionModalComponent } from './permission/permission-modal/permission-modal.component';

const COMPONENTS = [
  SysDicComponent,
  SysTypeComponent,
  SysLogComponent,
  SysDemoComponent,
  SysUserComponent,
  SysRoleComponent,
  SysPermissionComponent];
const COMPONENTS_NOROUNT = [
  SysDicDicModalComponent,
  SysDicItemModalComponent,
  SysTypeTypeModalComponent,
  SysTypeItemModalComponent,
  SysDicItemsDrawerComponent,
  SysUserUserModalComponent,
  SysRoleRoleModalComponent,
  SysPermissionPermissionModalComponent];

@NgModule({
  imports: [SharedModule, SysRoutingModule],
  declarations: [...COMPONENTS, ...COMPONENTS_NOROUNT],
  entryComponents: COMPONENTS_NOROUNT,
})
export class SysModule {}
